var express = require('express');
var router = express.Router();

const { information, auditTenants, getState } = require('../service/tenantsService')

/* GET home page. */
router.get('/information', function (req, res, next) {
    information();
});

//审核车位渲染列表
router.get('/auditTenants', async function (req, res, next) {
    const data = await auditTenants(req.query)
    res.send(data)
})

//
router.get('/getState', async function (req, res, next) {
    const data = await getState(req.query)
    res.send(data)
})

module.exports = router;